package org.darkforest.common.services;

import org.darkforest.model.StoreClass;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2015/12/16.
 */
public interface StoreClassService {


    int deleteByPrimaryKey(Integer scId);

    int insert(StoreClass record);

    int insertSelective(StoreClass record);

    StoreClass selectByPrimaryKey(Integer scId);

    int updateByPrimaryKeySelective(StoreClass record);

    int updateByPrimaryKey(StoreClass record);

    /**
     * 店铺分类分页列表
     * @param storeClass
     * @return
     */
    StoreClass selectListByPage(StoreClass storeClass);

    /**
     * 根据条件查询店铺分类
     * @param storeClass
     * @return
     */
    List<StoreClass> selectListByCondition(StoreClass storeClass);

    /**
     * 批量删除店铺分类
     * @param ids
     * @return
     */
    int delStoreClassBatch(String[] ids);


    /**
     * 根据名称查询除自身之外的相同的数据
     * @param sc_name
     * @return
     */
    List<StoreClass> checkStoreNameExceptSelf(Map<String, Object> sc_name);
}
